home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-screenplay-
/
shareware
/
soliton
/
extras
/
reko2soliton.ifx
< prev
next >
Wrap
Text File
|
1999-02-08
|
1KB
|
91 lines
/*
** Convert Reko cardsets to Soliton
*/
/*trace results*/
OPTIONS RESULTS
/* First we need to open rexxsupport library */
if ~show('l', 'rexxsupport.library') then do
if ~addlib('rexxsupport.library', 0, -30, 0) then do
say 'Could not find rexxsupport.library'
return 10
end
end
Redraw Off ; Undo Off
tlx=2;tly=1
sizx=88;sizy=130
sepx=90;sepy=131
setpalette '-1' 0 0 0
swap
createbuffer sizx*14 sizy*4 force
REDRAW
setpalette '-1' 24 90 148
SWAP
GetMain ; IF result = "" THEN EXIT
PARSE VAR result name width height depth .
format = 0
if width > 1300 then format = 1
do y = 0 to 3
do x = 0 to 12
x1 = tlx+x*sepx; y1 = tly+y*sepy
Scissors
Box x1 y1 sizx sizy
Swap
BrushHandle 0 0
Point x*sizx y*sizy
redraw x*sizx y*sizy sizx sizy
Swap
end
end
if format = 1 then do
x1 = 1352; y1 = 132
Scissors
Box x1 y1 sizx sizy
Swap
BrushHandle 0 0
Point 13*sizx 0
Redraw 13*sizx 0 sizx sizy
Swap
x1 = 1262; y1 = 132
Scissors
Box x1 y1 sizx sizy
Swap
BrushHandle 0 0
Point 13*sizx sizy
Redraw 13*sizx sizy sizx sizy
end
if format = 0 then do
x1 = 1172; y1 = 132
Scissors
Box x1 y1 sizx sizy
Swap
BrushHandle 0 0
Point 13*sizx 0
Redraw 13*sizx 0 sizx sizy
Swap
x1 = 1172; y1 = 263
Scissors
Box x1 y1 sizx sizy
Swap
BrushHandle 0 0
Point 13*sizx sizy
Redraw 13*sizx sizy sizx sizy
end
killswap
killbrush
Undo On ; Redraw On